﻿using System;
using System.Collections.Generic;
using Avalonia.Controls;

namespace ExcelMerge;

public class DiffViewArgs(List<CellDiffItem> originItems, List<CellDiffItem> newItems, List<Diff<CellDiffItem>> diffs)
{
    public List<CellDiffItem> OriginItems { get; } = originItems;
    public List<CellDiffItem> NewItems{ get; } = newItems;
    public List<Diff<CellDiffItem>> Diffs { get; } = diffs;
}

public partial class DiffView : UserControl
{
    private DiffViewArgs _args;
    public DiffView(object args)
    {
        if (args is not DiffViewArgs argument)
        {
            throw new Exception("参数类型不对:" + args.GetType().FullName);
        }

        _args = argument;
        InitializeComponent();
    }
}